// ==UserScript==
// @name         蜂鸟地图工位绑定
// @namespace    https://urcity.gitee.io/
// @version      0.016
// @author       xpure@foxmail.com
// @updateURL    https://urcity.gitee.io/meta
// @downloadURL  https://urcity.gitee.io/monkey.js
// @require      https://coffeescript.org/v2/browser-compiler/coffeescript.js
// @require      https://cdn.jsdelivr.net/combine/npm/jquery@3/dist/jquery.min.js,npm/papaparse@4,npm/sweet-modal@1.3.2/dist/min/jquery.sweet-modal.min.js,npm/lodash@4,npm/lz-string@1.4.4/libs/lz-string.min.js
// @resource     css_box https://cdn.jsdelivr.net/npm/sweet-modal@1.3.2/dist/min/jquery.sweet-modal.min.css
// @grant        GM_getResourceText
// @grant        GM_addStyle
// @grant        GM_xmlhttpRequest
// @run-at       document-start
// @resource     coffee https://urcity.gitee.io/index.coffee
// @resource     css https://urcity.gitee.io/index.css
// @match        ://editor.fengmap.com/*
// ==/UserScript==

if(unsafeWindow.location.search.startsWith("?m=")){

unsafeWindow.REACT = {}
unsafeWindow.__REACT_HOT_LOADER__ = {
    register:(func, name)=>{
        unsafeWindow.REACT[name]=func
    }
}
var HOST = {
    SITE : "https://ucommuner.com",
    API : "https://1751346132046501.cn-zhangjiakou.fc.aliyuncs.com/2016-08-15/proxy/ucommuner/com"
}

function addCss(name) {
    GM_addStyle(GM_getResourceText(name))
}

(function() {

    addCss('css_box')
    addCss('css')
    eval(CoffeeScript.compile(GM_getResourceText('coffee'),{bare: true}))(HOST);

})();

}



